<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCompanyStatusCodesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('status_codes', function (Blueprint $table) {
            $table->bigIncrements('id');

            $table->string('status_code', 50)->nullable(false)->comment('状态标识');
            $table->unsignedTinyInteger('code')->nullable(false)->comment('标识');
            $table->string('code_desc')->nullable(false)->comment('状态描述');
            $table->string('remark')->default('')->comment('备注');

            $table->timestamps();
            $table->softDeletes();
            $table->engine = "InnoDB";
            $table->charset = 'utf8mb4';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('status_codes');
    }
}
